package com.example.service.impl;

import com.example.entity.po.Student;
import com.example.entity.po.Teacher;
import com.example.mapper.TeacherMapper;
import com.example.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;

    @Override
    public List<Teacher> queryTeacher() {
        return teacherMapper.queryTeacher();
    }

    @Override
    public int deleteTeacher(String teacherId) {
        return teacherMapper.deleteTeacher(teacherId);
    }

    @Override
    public int updateTeacher(Teacher teacher) {
        return teacherMapper.updateTeacher(teacher);
    }

    @Override
    public int addTeacher(Teacher teacher) {
        return teacherMapper.addTeacher(teacher);
    }

    @Override
    public List<Teacher> fuzzyTeacher(String teacherName) {
        return teacherMapper.fuzzyTeacher(teacherName);
    }

}
